<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			*{
				padding: 0;
				margin: 0;
			}
			body{
				perspective: 1000px;
				perspective-origin: 50% 50%;
			}
			.bigbox{
				transform-style: preserve-3d;
				position: relative;
				width: 400px;
				height: 400px;
				/* border: 1px solid red; */
				margin: 200px auto;
				backface-visibility: visible;
				animation: xz 3s infinite linear;
			}
			/* 表示动画的开始和结束 */
			@keyframes xz {
				from: {
				transform: rotate3d(0,0,0,0);	
				}
				to{
					transform: rotate3d(1,1,1,360deg);
				}
			}
			.bigbox div{
				position: absolute;
				left: 0;
				top: 0;
				width: 400px;
				height: 400px;
				border: 1px solid black;
				font-size: 36px;
				text-align: center;
				line-height: 400px;
			}
			.bigbox div:nth-child(1)
			{
			 background-color: rgba(76, 255, 235, 0.4);
			/* 或者换用背景图片 */
			transform: translateZ(200px);	
			}
			.bigbox div:nth-child(2)
			{
				transform: translateZ(-200px);
			}
			.bigbox div:nth-child(3)
			{
				transform: translateX(-200px) rotateY(90deg);
			}
			.bigbox div:nth-child(4)
			{
				transform: translateX(200px) rotateY(90deg);
			}
			.bigbox div:nth-child(5)
			{
				transform: translateY(-200px) rotateX(90deg);
			}
			.bigbox div:nth-child(6)
			{
				transform: translateY(200px) rotateX(90deg);
			}
			/* .bigbox
			{
				
			} */
		</style>
	</head>
	<body>
		<div class="bigbox">
			<div class="div">1</div>
			<div class="div">2</div>
			<div class="div">3</div>
			<div class="div">4</div>
			<div class="div">5</div>
			<div class="div">6</div>
		</div>
	</body>
</html>